package com.tinycloud.miracll.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tinycloud.common.core.annotation.Excel;
import com.tinycloud.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 生产订单生产数据采集主对象 erp_product_productordergather
 * 
 * @author ruoyi
 * @date 2021-06-26
 */
public class ErpProductOrderGather extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNum;

    /** 品管号 */
    @Excel(name = "品管号")
    private String qcNum;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNum;

    /** 产线代码 */
    @Excel(name = "产线代码")
    private String prodLineCode;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date acquisitionTime;

    /** 生产订单生产数据信息 */
    private List<ErpOrderProducInfo> erpOrderProducInfoList;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setQcNum(String qcNum) 
    {
        this.qcNum = qcNum;
    }

    public String getQcNum() 
    {
        return qcNum;
    }
    public void setBatchNum(String batchNum) 
    {
        this.batchNum = batchNum;
    }

    public String getBatchNum() 
    {
        return batchNum;
    }
    public void setProdLineCode(String prodLineCode) 
    {
        this.prodLineCode = prodLineCode;
    }

    public String getProdLineCode() 
    {
        return prodLineCode;
    }
    public void setAcquisitionTime(Date acquisitionTime) 
    {
        this.acquisitionTime = acquisitionTime;
    }

    public Date getAcquisitionTime() 
    {
        return acquisitionTime;
    }

    public List<ErpOrderProducInfo> getErpOrderProducInfoList()
    {
        return erpOrderProducInfoList;
    }

    public void setErpOrderProducInfoList(List<ErpOrderProducInfo> erpOrderProducInfoList)
    {
        this.erpOrderProducInfoList = erpOrderProducInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNum", getOrderNum())
            .append("qcNum", getQcNum())
            .append("batchNum", getBatchNum())
            .append("prodLineCode", getProdLineCode())
            .append("createTime", getCreateTime())
            .append("acquisitionTime", getAcquisitionTime())
            .append("erpOrderProducInfoList", getErpOrderProducInfoList())
            .toString();
    }
}
